<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>票务公告列表</title>
    <%@include file="common/head.jsp" %>
    <link href="${staticPath}/qtimages/images/apple-touch-icon.png" rel="apple-touch-icon">
    <link href="${staticPath}/qtimages/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/animate/animate.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/magnific-popup/magnific-popup.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="${staticPath}/qtimages/css/custom.css">
    <link rel="stylesheet" href="${staticPath}/images/hsgcommon/divqt.css" type="text/css">
</head>
<script type="text/javascript">
    //附件下载
    function down(fujianPath) {
        var url = "${contextPath}/common/download?filename=" + fujianPath;
        url = encodeURI(url);
        window.open(url, "_self");
    }
</script>
<body>
<%@ include file="qttop.jsp" %>
<%@ include file="bht.jsp" %>
<main id="main">
    <section id="services" class="wow fadeInUp">
        <div class="container">
            <div class="section-header">
                <h2>◇◆ 票务公告 ◆◇</h2>
            </div>
            <div class="row">
                <form name="formSearch" id="formSearch" method="post" action="${contextPath}/${actionName}" style="width:100%">
        标题:<input type="text" style='border:solid 1px #000000; color:#666666' name="biaoti" id="biaoti" size="12px" value="${req.biaoti}"/>&nbsp;&nbsp;

                    <input type="submit" name="Submit" value="查找" class='hsgqiehuanshitu'/>
                </form>
                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="00FFFF"
                       style="border-collapse:collapse" class="newsline">
                    <tr>
<%--                        <td width="40px" align="center" bgcolor="">序号</td>--%>
        <td bgcolor='' align="center">标题</td>
        <td bgcolor='' align="center">图片</td>
        <td bgcolor='' align="center">时间</td>

                        <td width="40px" align="center" bgcolor="">详细</td>
                    </tr>

                    <c:forEach items="${pageInfo.records}" var="info" varStatus="s">
                        <tr>
<%--                            <td width="40px" align="center">--%>
<%--                                    ${s.index+1}--%>
<%--                            </td>--%>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.biaoti)>'16'}">
                        ${fn:substring(info.biaoti,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.biaoti}
                    </c:otherwise>
                </c:choose>
            </td>
            <td width='90px'>
                <a href='${contextPath}/${info.tupian}' target='_blank'>
                    <img src='${contextPath}/${info.tupian}' width="88" height="99" border="0"  onerror="this.src='${staticPath}/images/zanwu.jpg'" />
                </a>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.shijian)>'16'}">
                        ${fn:substring(info.shijian,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.shijian}
                    </c:otherwise>
                </c:choose>
            </td>

                            <td width="40px" align="center">
                                <a href="${contextPath}/gonggaoDetailQian/${info.id}">
                                    详细
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
                <br>
                <%@ include file="common/fenye.jsp"%>
                <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF"
                       style="border-collapse:collapse" class="newsline">
                    <tr>
                        <td align="center" bgcolor="">
                            <input type="button" value="返回" style="width: 60px;" onClick="javascript:history.back()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </section>
    <%@ include file="qtdown.jsp" %>
</main>
</body>
</html>
